package com.ruoyi.assistant.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试题管理对象 tb_question
 * 
 * @author ruoyi
 * @date 2024-04-22
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 题目 */
    @Excel(name = "题目")
    private String question;

    /** 题目编号 */
    @Excel(name = "题目编号")
    private Long questionNum;

    /** 考试id */
    @Excel(name = "考试id")
    private Long examId;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String correctAnswer;

    /** 答案对应的题目编号 */
    @Excel(name = "答案对应的题目编号")
    private Long correctAnswerNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }
    public void setQuestionNum(Long questionNum) 
    {
        this.questionNum = questionNum;
    }

    public Long getQuestionNum() 
    {
        return questionNum;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setCorrectAnswer(String correctAnswer) 
    {
        this.correctAnswer = correctAnswer;
    }

    public String getCorrectAnswer() 
    {
        return correctAnswer;
    }
    public void setCorrectAnswerNum(Long correctAnswerNum) 
    {
        this.correctAnswerNum = correctAnswerNum;
    }

    public Long getCorrectAnswerNum() 
    {
        return correctAnswerNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("question", getQuestion())
            .append("questionNum", getQuestionNum())
            .append("examId", getExamId())
            .append("correctAnswer", getCorrectAnswer())
            .append("correctAnswerNum", getCorrectAnswerNum())
            .toString();
    }
}
